package net.itren.jetpackdemo.bean

class Derived : Base {
    var name: String = "bbb"
        get() = "ccc"
        set(value) {
            field = value
        }

    override var ps: Int = 34

    constructor(name: String) : super(p = 89) {
        this.name = name;
    }


    init {
        println("我们看看name是啥  $name ")
    }

    override fun toString(): String {
        return "Derived(name=$name, ps=$ps)"
    }


}

fun main() {
    val derived = Derived("aaa");

    println(derived.toString())

}